﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OznerOA.Utils
{
    public class DateUtils
    {
        public static long GetTimestamp(DateTime d)
        {
            //TimeSpan ts = d.ToUniversalTime() - new DateTime(1970, 1, 1);
            //return ts.TotalMilliseconds;     //精确到毫秒
            return (DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000000;
        }
    }
}
